
import { createRouter,createWebHashHistory,Router,RouteRecordRaw } from "vue-router";


const routes:RouteRecordRaw[]= [
    {
        "path":"/",
        component:()=>import('@/views/login/index.vue')
    },
    {
        "path":"/login",
        component:()=>import('@/views/login/index.vue')
    },
    {
        "path":"/home",
        component:()=>import('@/layout/index.vue'),
        children:[
            {
                "path":"/designParttern",
                component:()=>import('@/views/designParttern/index.vue')
            },
            
        ]
    },
    
]
const router:Router = createRouter({
    history:createWebHashHistory(),
    routes,
})

export default router